#ifndef _VOLUME_MAPPING
#define _VOLUME_MAPPING

#include <string>
#include <map>

class volume_map
{
public:	
	volume_map(std::string const& _filename);
	inline volume_map() {};

	static const char DELIMITER;
	static const char COMMENT;

	friend std::ostream& operator << (std::ostream& ost, volume_map const& c);	
	bool empty();
	
	std::string const get_label(char _id) const;	

protected:

	std::map< char, std::string > _volume_map;
		
private:

	bool init_from(std::string const& _filename);	
	bool parse(const char* filename);
};

#endif